package com.explorex.infra.puma.gateway.netty.ws.message;


import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;

/**
 * @author: JacceYang
 * @createTime: 2022/07/15 10:18 上午
 * @description: 消息返回的结构体
 */
@JsonDeserialize(using = JsonDeserializer.None.class)
@Data
public abstract class RespMessageBody implements MessageBody {
    protected int code = 0;
    protected String msg = "success";
    /**
     * 端侧的消息uuid 值
     */
    private String uuid;
    private long ts = System.currentTimeMillis(); //服务器当前时间戳.用于时间校
    private Object data;
}
